﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using LsUpdater.API;
using System.Threading;
using Winform_Setup;
using System.IO;

namespace LsUpdater
{
    public partial class FinishFrm : Form
    {
        Register reg = new Register();
        public FinishFrm()
        {
            InitializeComponent();       
        }



        private void btnCancel_Click(object sender, EventArgs e)
        {
            if (chkFinishStart.Checked)
            {
                System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory + "\\" + Comm.infoRemote.ProcessName + ".exe");
            }
            if (chkNewProperty.Checked)
            {
                if (File.Exists(System.AppDomain.CurrentDomain.BaseDirectory + "\\" + "whatsnew.txt"))
                {
                    System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory + "\\" + "whatsnew.txt");
                }
            }           
            Environment.Exit(0);
        }

    }
}
